<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>My Library</title>
  <%= stylesheet_link_tag 'style' %>
  <%= stylesheet_link_tag 'scaffold' %>
</head>
<body>
<div id ='container'>
  <div id = 'header'>
    <h1>My Library</h1>
  </div>
  <div id="nav">
    <%= link_to 'Books', :action => 'index', :controller =>  'books' %>
    <% if logged_in? && current_user.is_admin? %>
      <%= link_to 'Borrowings', :action => 'index', :controller => 'borrowings' %>
      <%= link_to 'Categories', :action => 'index', :controller => 'categories' %>
      <%= link_to 'Languages', :action => 'index', :controller => 'languages' %>
      <%= link_to 'Users', :action => 'index', :controller => 'users' %>
    <% end %>
    <% if logged_in? %>
      <%= link_to 'Profile', :action => 'edit', :controller =>  'profile' %>
    <% end %>
    <% if logged_in? %>
      <%= link_to 'Log out', :action => 'logout', :controller => 'account' %>
    <% else %>
       <%= link_to 'Log in', :action => 'login', :controller => 'account' %>
    <% end %>
  </div>
  <div id="content">
    <%= yield %>
    <p style="color: green"><%= flash[:notice] %></p>
    <p style="color: red"><%= flash[:warning] %></p>
    <p style="color: red"><%= flash[:error] %></p>
  </div>
  <div id="footer">
     <p><small>&copy; 2007 Henio - All rights reserved</small></p>
  </div>
</div>
</body>
</html>
